//
//  UIView+LayoutFrame.m
//  anchorheadlines
//
//  Created by 拼凑的断音 on 2017/4/19.
//  Copyright © 2017年 拼凑的断音. All rights reserved.
//

#import "UIView+LayoutFrame.h"

@implementation UIView (LayoutFrame)

-(CGFloat)xx_left
{
    return self.frame.origin.x;
}

-(CGFloat)xx_top
{
    return self.frame.origin.y;
}

-(CGFloat)xx_right
{
    return self.frame.origin.x + self.frame.size.width;
}

-(CGFloat)xx_bottom
{
    return self.frame.origin.y + self.frame.size.height;
}

-(CGFloat)xx_width
{
    return self.frame.size.width;
}

-(CGFloat)xx_height
{
    return self.frame.size.height;
}

-(CGFloat)xx_centerX
{
    return self.center.x;
}

-(CGFloat)xx_centerY
{
    return self.center.y;
}

-(CGPoint)xx_origin
{
    return self.frame.origin;
}

-(CGSize)xx_size
{
    return self.frame.size;
}

@end
